package com.cmsz.collection.service.impl;

import com.cmsz.collection.bean.AlarmLog;
import com.cmsz.collection.repository.AlarmLogRepository;
import com.cmsz.collection.service.AlarmLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlarmLogServiceImpl implements AlarmLogService {

    @Autowired
    AlarmLogRepository alarmLogRepository;

    @Override
    public int batchCreateAlarmLog(List<AlarmLog> list) {
        System.out.println(list.toString());
        return alarmLogRepository.batchCreateAlarmLog(list);
    }
}
